package PMIRPConstDefs;


/**
 * Generated from IDL struct "MUnsupported".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class MUnsupportedHelper
{
	private static org.omg.CORBA.TypeCode _type = null;
	public static org.omg.CORBA.TypeCode type ()
	{
		if (_type == null)
		{
			_type = org.omg.CORBA.ORB.init().create_struct_tc(PMIRPConstDefs.MUnsupportedHelper.id(),"MUnsupported",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("mo_instance", PMIRPConstDefs.MOInstanceHelper.type(), null),new org.omg.CORBA.StructMember("measurement_type_name", PMIRPConstDefs.MeasurementTypeNameHelper.type(), null),new org.omg.CORBA.StructMember("sub_counter_name", PMIRPConstDefs.SubCounterNameHelper.type(), null),new org.omg.CORBA.StructMember("reason", org.omg.CORBA.ORB.init().create_string_tc(0), null)});
		}
		return _type;
	}

	public static void insert (final org.omg.CORBA.Any any, final PMIRPConstDefs.MUnsupported s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}

	public static PMIRPConstDefs.MUnsupported extract (final org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}

	public static String id()
	{
		return "IDL:PMIRPConstDefs/MUnsupported:1.0";
	}
	public static PMIRPConstDefs.MUnsupported read (final org.omg.CORBA.portable.InputStream in)
	{
		PMIRPConstDefs.MUnsupported result = new PMIRPConstDefs.MUnsupported();
		result.mo_instance=in.read_string();
		result.measurement_type_name=in.read_string();
		result.sub_counter_name=in.read_string();
		result.reason=in.read_string();
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream out, final PMIRPConstDefs.MUnsupported s)
	{
		out.write_string(s.mo_instance);
		out.write_string(s.measurement_type_name);
		out.write_string(s.sub_counter_name);
		out.write_string(s.reason);
	}
}
